Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error handling in login to handle 429 response (too many wrong credentials at login) #1514

Merged
merged 3 commits into from
Sep 30, 2021

Conversation

danilo04
Copy link
Contributor

@danilo04 danilo04 commented Sep 30, 2021

Fixes #1513.

Fix

Currently, Simperium doesn't handle the error code 429 which represents the user is temporarily blocked because too many failed attempts to log in.

Expected Behavior

The expected behavior is to show the user a specific error message for this error: Too many log in attempts. Try again later.

Current Behavior

The user sees the wrong credentials default error.

Test

  1. Go to login
  2. Try to introduce wrong credentials 5 to 10 times
  3. See error

image

Review

Only one developer is required to review these changes, but anyone can perform the review.

Release

RELEASE-NOTES.txt was updated in 2684451 with:

Added error handling for when the user has made too many wrong credential requests at login

@danilo04 danilo04 added [Type] Enhancement Improve existing functionality. consistency Issues created in order to align the UX with other platforms labels Sep 30, 2021
@danilo04 danilo04 self-assigned this Sep 30, 2021
@danilo04 danilo04 added this to the 2.23 milestone Sep 30, 2021
@peril-automattic
Copy link

peril-automattic bot commented Sep 30, 2021

You can test the changes on this Pull Request by downloading the APK here.

Copy link

@sandymcfadden sandymcfadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to have someone else take a look at the code, but I tested this out and everything works as expected.
I tested unverified accounts, invalid logins, valid logins, and after trying a number of times I saw the new error message for trying too many times as well.

@danilo04 danilo04 merged commit 11bbfcd into develop Sep 30, 2021
@danilo04 danilo04 deleted the issue/1513-handle-429-error branch September 30, 2021 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency Issues created in order to align the UX with other platforms [Type] Enhancement Improve existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle too many login attempts error 429
2 participants